<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" scope="request"/>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="<c:url value='/resources/styles/main.css' />" type="text/css"/>
    <link type="text/css" rel="stylesheet" href="<c:url value='/resources/ckeditor/_samples/sample.css' />" />
    <script type="text/javascript" src="<c:url value='/resources/scripts/datePicker/WdatePicker.js' />"></script>
    <script type="text/javascript">
        var contextPath = '${ctx}/';
    </script>
    <title>会议维护</title>
</head>
<body>

<table class="pagination" style="padding-left: 70px;">
    <tr>
        <td>
            <a href="<c:url value='/admin/session/listSession.do' />">返回会议列表</a>
        </td>
    </tr>
</table>
<form id="editSession" name="editSession" enctype="multipart/form-data" action="<c:url value='/admin/session/editSession.do' />" method="post">

    序号：<input type="text" id="seq" name="seq" value="${data.seq}"/>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </br>
    经度：<input type="text" id="longitude" name="longitude" value="${data.longitude}"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    纬度：    <input type="text" id="latitude" name="latitude" value="${data.latitude}"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </br>
    会议坐标名称：<input type="text" id="coordName" name="coordName" value="${data.coordName}"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    会议坐标地址：<input type="text" id="coordAddr" name="coordAddr" value="${data.coordAddr}"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </br>

    酒店名称：<input type="text" id="hotelName" name="hotelName" value="${data.hotelName}"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    酒店地址：    <input type="text" id="hotelAddr" name="hotelAddr" value="${data.hotelAddr}"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    联系电话：<input type="text" id="hotelOther" name="hotelOther" value="${data.hotelOther}"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</br>
    酒店图片：<input type="file" id="filePic" name="filePic"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </br>
    <img src="${link}${data.picPath}" height="120px" width="180px" alt="没有图片"/></br>

    会议日期：&nbsp;&nbsp;&nbsp;&nbsp; <input value="${data.day}" type="text" id="day" name="day"  class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd ', readOnly:true})"/>
    &nbsp;&nbsp;&nbsp;&nbsp;
    会议时段：
    <select id="section" name="section">
        <option value="am" ${data.section=='am' ? 'selected' : ''}>上午</option>
        <option value="noon" ${data.section=='noon' ? 'selected' : ''}>中午</option>
        <option value="pm" ${data.section=='pm' ? 'selected': ''}>下午</option>
        <option value="night" ${data.section=='night' ? 'selected': ''}>晚上</option>

    </select>

    </br>
    标题(仅管理界面可见)：<input type="text" id="title" name="title" value="${data.title}" /></br>

    分组名称(A): &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="groupNameFirst" name="groupNameFirst" value="${data.groupNameFirst}"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    分组名称(B): &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="groupNameLast" name="groupNameLast" value="${data.groupNameLast}"/>

    <textarea id='content' name='content'  cols="80" rows="10">${data.content}</textarea>
    <ckeditor:replace  replace="content" basePath="${ctx}/resources/ckeditor/" /> </br>
    <input type="hidden" id='type' name='type' value='session' />
    <input type="hidden" id='id' name='id' value='${data.id}' />
    <input type="hidden" id='entryDate' name='entryDate' value='${data.entryDate}' />
    <div style="text-align: center"><input type='submit' value="提交" /></div>
</form>
</body>
</html>